<?php
namespace app\common\model;
/**
 * 优惠券记录
 */
class CouponLog extends Base 
{
	// 自动写入时间戳
    protected $autoWriteTimestamp = true;

    public function member(){
		return $this->belongsTo('Member','uid','id');
	}

	public function coupon(){
		return $this->belongsTo('Coupon','coupon_id','id');
	}
}